package com.chatplus.application.aiprocessor.handler.dto;

import cn.hutool.json.JSONUtil;

import java.io.Serializable;

/**
 * Chat记录消息体
 */
public class ChatRecordMessage implements Serializable {
    private String prompt;
    /**
     * 消息内容,最新的一条是没有reply的
     */
    private String reply;

    public ChatRecordMessage() {
    }

    public ChatRecordMessage(String prompt, String reply) {
        this.prompt = prompt;
        this.reply = reply;
    }

    public String getPrompt() {
        return prompt;
    }

    public void setPrompt(String prompt) {
        this.prompt = prompt;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public byte[] toByte() {
        return JSONUtil.toJsonStr(this).getBytes();
    }
}
